<?php
declare(strict_types=1);
namespace SixShop\Lakala\Controller\Admin;

use SixShop\Core\Request;
use SixShop\Lakala\Entity\ProfitShareOrderEntity;
use think\Response;
use function SixShop\Core\page_response;

class ProfitShareOrderController
{
    public function index(Request $request, ProfitShareOrderEntity $entity): Response
    {
        $params = $request->get([
            'status/d' => 0,
            'out_separate_no' => '',
        ]);
        return page_response(page: $entity->getOrderList($params, $request->pageAndLimit()));
    }
}